import request from '/@/utils/request'
import {module} from '/@/api/ums'

export default {
  getList(customerId) {
    return request({
      url: module + '/customerPortrait/getList?customerId=' + customerId,
      method: 'get'
    })
  },
  create(data) {
    return request({
      url: module + '/customerPortrait/create',
      method: 'post',
      data
    })
  },
  edit(data) {
    return request({
      url: module + '/customerPortrait/edit',
      method: 'post',
      data
    })
  },
  remove(data) {
    return request({
      url: module + '/customerPortrait/delete',
      method: 'post',
      data
    })
  }
}
